const ModuleSearch = ({
    state: {
        searchResults: [],
        searchUserResults: [],
    },
    getters: {
    },
    mutations: {
        setSearchResults(state, results) {  
            state.searchResults = results;  
        },
        setSearchUserResults(state, results) {
            state.searchUserResults = results;
        }
    },
    actions: {
        updateSearchResults({ commit }, results) {  
            commit('setSearchResults', results);  
        },
        updateSearchUserResults({ commit }, results) {
            commit('setSearchUserResults', results)
        }
    },
    modules: {
    },
})

export default ModuleSearch
